
$class('GoodsPhotoView', Widget, {

	// Members
	_templateFile: "thtml/goodsphotoview.html",

	// Methods
	constructor: function(widgetId, templateFile)
	{

	},

	create: function(parent)
	{
		this.super(Widget.prototype.create, arguments);
		// You can use this._domNode.preappend(parent);
		this._domNode.appendTo(parent);
		return this._domNode;
	},

	destroy: function()
	{
	},

	toString: function()
	{
		return "<Widget: 'GoodsPhotoView'>";
	},

	addThumbs: function(photoUrl, thumbsUrl)
	{
		thumbsUrl = thumbsUrl || photoUrl;
		var templateString = '<li class=""><div class="tb-pic tb-s40"><a href="#"><img src="' + thumbsUrl + '"></a></div></li>';
		var ul = this._domNode.find('#thumbs');
		$(templateString).appendTo(ul);
	},
});
